﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="BookEnd.aspx.cs" Inherits="MyHospital.web.BookEnd" EnableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link  rel="stylesheet" href="Styles/Style.css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div >
    <asp:GridView Width="690px" Height="180px" ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
        <Columns>
      <asp:TemplateField>
        <ItemTemplate>
          <table style="border: 1px solid #808080; width: 100%;">
            <tr>
              <td rowspan="7" style="text-align: center; border: 1px; vertical-align: middle; width: 20%;">
                <asp:Image ID="imgProduct" runat="server" ImageUrl='<%# Eval("image") %>' Height="120px" Width="90px" />
              </td>
              <td style="border: 1px solid #808080; width: 30%;">医师： </td>
              <td style="border: 1px solid #808080; width: 35%;">
                <asp:Label ID="lblProductId" runat="server" Text='<%# Eval("doctorName") %>'></asp:Label>
              </td>
            </tr>
            <tr>
              <td style="border: 1px solid #808080;">职称： </td>
              <td style="border: 1px solid #808080;">
                <asp:Label ID="lblCategoryId" runat="server" Text='<%# Eval("job") %>'></asp:Label>
              </td>
            </tr>
            <tr>
              <td style="border: 1px solid #808080; ">介绍： </td>
              <td style="border: 1px solid #808080; ">
                <asp:Label ID="lblName" runat="server" Text='<%# Eval("introduce") %>'></asp:Label>
              </td>
            </tr>
          </table>
        </ItemTemplate>
      </asp:TemplateField>
    </Columns>
    </asp:GridView>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:GridView Width="500px" Height="180px" ID="GridView2" AutoGenerateColumns="False" runat="server">
        <Columns>
            <asp:BoundField DataField="time" HeaderText="可选时间段" />
            <asp:BoundField DataField="number" HeaderText="剩余" />
            <asp:TemplateField>   
           <ItemTemplate>   
                   <asp:Button    ID="Button1"    runat="server"    OnClick="Button1_Click"   Text="预约"    />   
           </ItemTemplate>   
   </asp:TemplateField> 
        </Columns>
    </asp:GridView>
</asp:Content>

